{:W('Template/top')}
<div class="wrapper clearfix content" style="position: relative;border: 1px solid #ddd">
    {:W('Template/left')}
    <div class="rightbox pull-right">
        <div class="ur-here">您当前的位置：<a href="#">平台账户余额管理</a>&gt;平台账户充值申请</div>
        <div class="cTitle2">平台账户充值申请</div>
        <div class="main-search">
        </div>

        <form method="post" action="">
            <input type='hidden' id='code' value='{$Think.session.creditCode}'>
            <input id="account_type" type="hidden" value="10"/>
            <input id="applyList" type="hidden" value="{:U('Forum/index',array('id' => 182))}"/>
            <input id="saveApplyCredit" type="hidden" value="{:U('Forum/applyCredit')}"/>
            <input id="account" type="hidden" value="{$info.account}">
            <input id="state" type="hidden" value="{$info.state}">
            <notempty name="info">
            <table class="cTable table-hover" width="100%">
                <tr>
                    <th width="25%">名称</th>
                    <th width="25%">账户可用余额</th>
                    <th width="25%">状态</th>
                    <th width="25%">操作</th>
                </tr>
                <td>
                    {$info.name}
                </td>
                <td class="text-center text-c5">
                    <dfn>&yen;{$info.account_credit_balance|GetYuan}</dfn>
                </td>
                <td>
                    <if condition="$info.state eq 1">
                        <span class="text-c7">正常</span>
                        <elseif condition="$info.state eq 2"/>
                        <span class="text-c8">禁用</span>
                    </if>
                </td>
                <td>
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                                aria-expanded="false">
                            操作<span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="javascript:void(0)" onclick="applyCredit()">充值</a></li>
                        </ul>
                    </div>
                </td>
                </tr>
            </table>
            </notempty>
        </form>
    </div>
</div>

<div class="modal fade" id="myModalLabel" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width:300px">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    授信额度申请
                </h4>
            </div>
            <div class="modal-body">
                金额：
                <input type="text" class="form-control" id="amount">
                类型：
                <select class="form-control topup_type">
                    <option value="">--选择充值类型--</option>
                    <option value="1">现金充值</option>
                    <option value="2">刷卡充值</option>
                    <option value="3">支票充值</option>
                    <option value="4">银行转账</option>
                    <option value="5">支付宝转账</option>
                </select>
            </div>
            <div class="modal-footer">
                <div class="pull-right">
                    <button type="button" class="btn btn-primary" id="saveApply">
                        提交
                    </button>
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">关闭
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
{:W('Template/bottom')}
<script src="__PUBLIC__/js/credit.js?v=2"></script>
</body>
</html>